package com.itheima.entry;

import com.itheima.contrall.AdminContrall;
import com.itheima.contrall.StudentContrall;

import java.io.IOException;
import java.util.Scanner;

public class InfoEntry {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("请选择：1.管理员  2.用户  3.退出");
            String choose = sc.next();
            switch (choose) {
                case "1":
                    AdminContrall adminContrall = new AdminContrall();
                    adminContrall.start();break;
                case "2":
                    StudentContrall studentContrall = new StudentContrall();
                    studentContrall.start();break;
                case "3":
                    System.out.println("感谢使用，再见");
                    //退出虚拟机
                    System.exit(0);
                    break;
            }
        }
    }
}
